package com.amigo.online.consumer.user.controller;

import com.amigo.online.common.base.controller.BaseConsumerController;
import com.amigo.online.common.core.response.Response;
import com.amigo.online.consumer.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kml
 * @version 1.0
 * @className UtilController
 * @description
 * @date 2019/4/10 22:19
 **/
@RestController
public class UtilController extends BaseConsumerController {

    @Autowired
    UserService userService;

    @GetMapping(value = "/getValueByVersion/{version}")
    public ResponseEntity<Response> getValueByVersion(@PathVariable String version){
        return userService.getValueByVersion(version);
    }
}
